﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace JSONPTest
{
    public class GenericTest
    {

        static void Swap<T>(ref T lhs, ref T rhs)
        {
            T temp;
            temp = lhs;
            lhs = rhs;
            rhs = temp;
        }


        void Swap2<T>(ref T lhs, ref T rhs)
        {
            T temp;
            temp = lhs;
            lhs = rhs;
            rhs = temp;
        }

        void Swap3<T>(T lhs, T rhs)
        {
            T temp;
            temp = lhs;
            lhs = rhs;
            rhs = temp;
        }



        public IList<T> Swap22<T, U>(T alpha, T beta, U gamma)
        {
            List<T> temps = new List<T>();
            T temp;
            temp = alpha;
            alpha = beta;
            U xxx;
            xxx = gamma;

            return temps;
        }

    }
}